package com.asset.dispoal.business.casedispose.service.command;

import com.asset.dispoal.business.casedispose.domain.db.mapper.CasedisposeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tech.mhuang.pacebox.core.ddd.BaseCommand;
import tech.mhuang.pacebox.springboot.protocol.Result;

@Component
public class CaseDisposalFileDeleteByIdCommand implements BaseCommand<String, Result> {
    @Autowired
    CasedisposeMapper casedisposeMapper;

    @Override
    public Result execute(String id) {
        casedisposeMapper.deleteFileById(id);
        return Result.ok();
    }
}
